import type { PageDto, PageReqDto } from '@/api/types'
import type { OperationTypeCnEnum } from '@/const/enum'
import request from '@/utils/request'
import type { InsuranceRecordDto } from './types'

export function getInsuranceRecordList(params: PageReqDto & {
    operateType: OperationTypeCnEnum
    companyPlanId: number
}): Promise<InsuranceRecordDto[]> {
    return request.get('/crm-prod-v2/web/pc/crm/insurePeriodOperateRecord/queryPageList', {
        params
    })
}